package com.haiyou.email.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 邮件配置
 */

@ConfigurationProperties(prefix = SpringEmailProperties.PREFIX)
@Data
public class SpringEmailProperties {
    /**
     * 服务配置前缀名
     */
    public static final String PREFIX = "mail";

    /**
     * 是否可用
     */
    private boolean enable;
    /**
     * host
     */
    private String host;
    /**
     * port
     */
    private Integer port;
    /**
     * username
     */
    private String username;
    /**
     * password
     */
    private String password;

    /**
     * senderAlias 发送者别名
     */
    private String senderAlias;
    /**
     * 保存路径
     */
    private String savePath;

}
